<div class="container member-container">
    <?php include $this->getViewFile('../lib/leftmenu'); ?>
    <div class="col-md-10 member-con menber-score-con">
        <div class="title mb-common-title">晒单记录</div>
        <div class="content">
            <table style="min-width:600px">
                <thead>
                    <tr>
                        <td align="center" width="20%">订单</td>
                        <td align="center" width="25%">添加时间</td>
                        <td align="center" width="15%">状态</td>
                        <td align="center" width="40%">心得</td>
                    </tr>
                </thead>
                <tbody>
                    <?php foreach ($models as $rs): ?>
                        <tr>
                            <td class="redeemrecord" align="center" ><?php echo $rs->ordersn ?> </td>
                            <td class="redeemrecord" align="center" ><?php echo date('Y-m-d H:i:s', $rs->add_time) ?></td>
                            <td class="redeemrecord" align="center" ><?php echo MembersSunsingleModel::getStatusHtmlDetail($rs->status); ?> </td>
                            <td class="redeemrecord" align="center" ><?php echo $rs->experience ?> </td>
                        </tr>
                    <?php endforeach ?>   
                    <?php if($models): ?>
                    <tr>
                        <td colspan="4" class="pager">
                            <?php
                            $this->widget('CLinkPager', array(
                                'header' => "",
                                'firstPageLabel' => '首页',
                                'lastPageLabel' => '末页',
                                'prevPageLabel' => '上一页',
                                'nextPageLabel' => '下一页',
                                'pages' => $pages,
                                'footer' => "<span>共<em>{$pages->pageCount}</em>页</span>",
                                'maxButtonCount' => 5
                                    )
                            );
                            ?>
                        </td>
                    </tr>
                    <?php endif ?>
                </tbody>

            </table>
        </div>
    </div>
    <div class="clearfix"></div>
</div>